<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222"><meta name="generator" content="Hexo 6.3.0">

  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">



<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha256-CTSx/A06dm1B063156EVh15m6Y67pAjZZaQc89LLSrU=" crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancyapps-ui/5.0.24/fancybox/fancybox.css" integrity="sha256-vQkngPS8jiHHH0I6ABTZroZk8NPZ7b+MUReOFE9UsXQ=" crossorigin="anonymous">

<script class="next-config" data-name="main" type="application/json">{"hostname":"rjyblog.gitee.io","root":"/","images":"/images","scheme":"Pisces","darkmode":false,"version":"8.18.2","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":{"enable":true,"style":null},"fold":{"enable":false,"height":500},"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"menu_item":"fadeInDown","post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"},"path":"/search.xml","localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false}}</script><script src="/js/config.js"></script>

    <meta name="description" content="本文介绍Android Activity的启动流程">
<meta property="og:type" content="article">
<meta property="og:title" content="Android Activity启动流程">
<meta property="og:url" content="https://rjyblog.gitee.io/posts/11962.html">
<meta property="og:site_name" content="任建勇的博客">
<meta property="og:description" content="本文介绍Android Activity的启动流程">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-11-29T06:12:05.000Z">
<meta property="article:modified_time" content="2023-10-18T07:39:08.080Z">
<meta property="article:author" content="Jason">
<meta property="article:tag" content="Android, Java, Kotlin, Flutter, 前端技术, 设计模式">
<meta name="twitter:card" content="summary">


<link rel="canonical" href="https://rjyblog.gitee.io/posts/11962.html">



<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"zh-CN","comments":true,"permalink":"https://rjyblog.gitee.io/posts/11962.html","path":"posts/11962.html","title":"Android Activity启动流程"}</script>

<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>Android Activity启动流程 | 任建勇的博客</title>
  








  <noscript>
    <link rel="stylesheet" href="/css/noscript.css">
  </noscript>
</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <div class="column">
      <header class="header" itemscope itemtype="http://schema.org/WPHeader"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <i class="logo-line"></i>
      <p class="site-title">任建勇的博客</p>
      <i class="logo-line"></i>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger" aria-label="搜索" role="button">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li><li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a></li><li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a></li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup"><div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off" maxlength="80"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close" role="button">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div class="search-result-container no-result">
  <div class="search-result-icon">
    <i class="fa fa-spinner fa-pulse fa-5x"></i>
  </div>
</div>

    </div>
  </div>

</header>
        
  
  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
            <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#startActivity%E6%B5%81%E7%A8%8B"><span class="nav-text">startActivity流程</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Activity%E5%90%AF%E5%8A%A8%E6%B5%81%E7%A8%8B"><span class="nav-text">Activity启动流程</span></a></li></ol></div>
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Jason"
      src="/images/avatar.png">
  <p class="site-author-name" itemprop="name">Jason</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
        <a href="/archives/">
          <span class="site-state-item-count">66</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
          <a href="/categories/">
        <span class="site-state-item-count">13</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
          <a href="/tags/">
        <span class="site-state-item-count">23</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>

        </div>
      </div>
    </div>

    
  </aside>


    </div>

    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://rjyblog.gitee.io/posts/11962.html">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.png">
      <meta itemprop="name" content="Jason">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="任建勇的博客">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
      <meta itemprop="name" content="Android Activity启动流程 | 任建勇的博客">
      <meta itemprop="description" content="本文介绍Android Activity的启动流程">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          Android Activity启动流程
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2020-11-29 14:12:05" itemprop="dateCreated datePublished" datetime="2020-11-29T14:12:05+08:00">2020-11-29</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar-check"></i>
      </span>
      <span class="post-meta-item-text">更新于</span>
      <time title="修改时间：2023-10-18 15:39:08" itemprop="dateModified" datetime="2023-10-18T15:39:08+08:00">2023-10-18</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/Android/" itemprop="url" rel="index"><span itemprop="name">Android</span></a>
        </span>
    </span>

  
</div>

            <div class="post-description">本文介绍Android Activity的启动流程</div>
        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody"><h2 id="startActivity流程"><a href="#startActivity流程" class="headerlink" title="startActivity流程"></a>startActivity流程</h2><?xml version="1.0" encoding="us-ascii" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" height="862px" preserveAspectRatio="none" style="width:1908px;height:862px;background:#FFFFFF;" version="1.1" viewBox="0 0 1908 862" width="1908px" zoomAndPan="magnify"><defs/><g><rect fill="#FFFFFF" height="751.0859" style="stroke:#181818;stroke-width:1.0;" width="10" x="105" y="67.4297"/><rect fill="#FFFFFF" height="713.9531" style="stroke:#181818;stroke-width:1.0;" width="10" x="110" y="104.5625"/><rect fill="#FFFFFF" height="679.8203" style="stroke:#181818;stroke-width:1.0;" width="10" x="267" y="138.6953"/><rect fill="#FFFFFF" height="650.6875" style="stroke:#181818;stroke-width:1.0;" width="10" x="410" y="167.8281"/><rect fill="#FFFFFF" height="561.2891" style="stroke:#181818;stroke-width:1.0;" width="10" x="517" y="196.9609"/><rect fill="#FFFFFF" height="524.1563" style="stroke:#181818;stroke-width:1.0;" width="10" x="522" y="234.0938"/><rect fill="#FFFFFF" height="9" style="stroke:#181818;stroke-width:1.0;" width="10" x="517" y="809.5156"/><rect fill="#FFFFFF" height="490.0234" style="stroke:#181818;stroke-width:1.0;" width="10" x="684" y="268.2266"/><rect fill="#FFFFFF" height="452.8906" style="stroke:#181818;stroke-width:1.0;" width="10" x="689" y="305.3594"/><rect fill="#FFFFFF" height="410.7578" style="stroke:#181818;stroke-width:1.0;" width="10" x="694" y="347.4922"/><rect fill="#FFFFFF" height="327.3281" style="stroke:#181818;stroke-width:1.0;" width="10" x="699" y="430.9219"/><rect fill="#FFFFFF" height="285.1953" style="stroke:#181818;stroke-width:1.0;" width="10" x="704" y="473.0547"/><rect fill="#FFFFFF" height="251.0625" style="stroke:#181818;stroke-width:1.0;" width="10" x="1035" y="507.1875"/><rect fill="#FFFFFF" height="98.3984" style="stroke:#181818;stroke-width:1.0;" width="10" x="1040" y="659.8516"/><rect fill="#FFFFFF" height="86.3984" style="stroke:#181818;stroke-width:1.0;" width="10" x="1300" y="536.3203"/><rect fill="#FFFFFF" height="49.2656" style="stroke:#181818;stroke-width:1.0;" width="10" x="1305" y="573.4531"/><rect fill="#FFFFFF" height="29.1328" style="stroke:#181818;stroke-width:1.0;" width="10" x="1522" y="693.9844"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="110" x2="110" y1="36.2969" y2="827.5156"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="271.5" x2="271.5" y1="36.2969" y2="827.5156"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="414.5" x2="414.5" y1="36.2969" y2="827.5156"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="521.5" x2="521.5" y1="36.2969" y2="827.5156"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="689" x2="689" y1="36.2969" y2="827.5156"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="875.5" x2="875.5" y1="391.1406" y2="827.5156"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="1039.5" x2="1039.5" y1="36.2969" y2="827.5156"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="1304.5" x2="1304.5" y1="36.2969" y2="827.5156"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="1526.5" x2="1526.5" y1="36.2969" y2="827.5156"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="1795" x2="1795" y1="36.2969" y2="827.5156"/><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="70" x="75" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="56" x="82" y="24.9951">Activity</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="70" x="75" y="826.5156"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="56" x="82" y="846.5107">Activity</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="131" x="206.5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="117" x="213.5" y="24.9951">Instrumentation</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="131" x="206.5" y="826.5156"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="117" x="213.5" y="846.5107">Instrumentation</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="135" x="347.5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="121" x="354.5" y="24.9951">IActivityManager</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="135" x="347.5" y="826.5156"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="121" x="354.5" y="846.5107">IActivityManager</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="45" x="499.5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="31" x="506.5" y="24.9951">AMS</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="45" x="499.5" y="826.5156"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="31" x="506.5" y="846.5107">AMS</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="122" x="628" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="108" x="635" y="24.9951">ActivityStarter</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="122" x="628" y="826.5156"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="108" x="635" y="846.5107">ActivityStarter</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="121" x="815.5" y="826.5156"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="107" x="822.5" y="846.5107">ActivityRecord</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="187" x="946.5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="173" x="953.5" y="24.9951">ActivityStackSupervisor</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="187" x="946.5" y="826.5156"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="173" x="953.5" y="846.5107">ActivityStackSupervisor</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="111" x="1249.5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="97" x="1256.5" y="24.9951">ActivityStack</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="111" x="1249.5" y="826.5156"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="97" x="1256.5" y="846.5107">ActivityStack</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="147" x="1453.5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="133" x="1460.5" y="24.9951">ApplicationThread</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="147" x="1453.5" y="826.5156"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="133" x="1460.5" y="846.5107">ApplicationThread</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="120" x="1735" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="106" x="1742" y="24.9951">ActivityThread</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="120" x="1735" y="826.5156"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="106" x="1742" y="846.5107">ActivityThread</text><rect fill="#FFFFFF" height="751.0859" style="stroke:#181818;stroke-width:1.0;" width="10" x="105" y="67.4297"/><rect fill="#FFFFFF" height="713.9531" style="stroke:#181818;stroke-width:1.0;" width="10" x="110" y="104.5625"/><rect fill="#FFFFFF" height="679.8203" style="stroke:#181818;stroke-width:1.0;" width="10" x="267" y="138.6953"/><rect fill="#FFFFFF" height="650.6875" style="stroke:#181818;stroke-width:1.0;" width="10" x="410" y="167.8281"/><rect fill="#FFFFFF" height="561.2891" style="stroke:#181818;stroke-width:1.0;" width="10" x="517" y="196.9609"/><rect fill="#FFFFFF" height="524.1563" style="stroke:#181818;stroke-width:1.0;" width="10" x="522" y="234.0938"/><rect fill="#FFFFFF" height="9" style="stroke:#181818;stroke-width:1.0;" width="10" x="517" y="809.5156"/><rect fill="#FFFFFF" height="490.0234" style="stroke:#181818;stroke-width:1.0;" width="10" x="684" y="268.2266"/><rect fill="#FFFFFF" height="452.8906" style="stroke:#181818;stroke-width:1.0;" width="10" x="689" y="305.3594"/><rect fill="#FFFFFF" height="410.7578" style="stroke:#181818;stroke-width:1.0;" width="10" x="694" y="347.4922"/><rect fill="#FFFFFF" height="327.3281" style="stroke:#181818;stroke-width:1.0;" width="10" x="699" y="430.9219"/><rect fill="#FFFFFF" height="285.1953" style="stroke:#181818;stroke-width:1.0;" width="10" x="704" y="473.0547"/><rect fill="#FFFFFF" height="251.0625" style="stroke:#181818;stroke-width:1.0;" width="10" x="1035" y="507.1875"/><rect fill="#FFFFFF" height="98.3984" style="stroke:#181818;stroke-width:1.0;" width="10" x="1040" y="659.8516"/><rect fill="#FFFFFF" height="86.3984" style="stroke:#181818;stroke-width:1.0;" width="10" x="1300" y="536.3203"/><rect fill="#FFFFFF" height="49.2656" style="stroke:#181818;stroke-width:1.0;" width="10" x="1305" y="573.4531"/><rect fill="#FFFFFF" height="29.1328" style="stroke:#181818;stroke-width:1.0;" width="10" x="1522" y="693.9844"/><ellipse cx="7.5" cy="66.6797" fill="none" rx="4" ry="4" style="stroke:#181818;stroke-width:1.5;"/><polygon fill="#181818" points="93,63.4297,103,67.4297,93,71.4297,97,67.4297" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="12" x2="99" y1="67.4297" y2="67.4297"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="78" x="15" y="62.3638">startActivity</text><line style="stroke:#181818;stroke-width:1.0;" x1="115" x2="162" y1="91.5625" y2="91.5625"/><line style="stroke:#181818;stroke-width:1.0;" x1="162" x2="162" y1="91.5625" y2="104.5625"/><line style="stroke:#181818;stroke-width:1.0;" x1="121" x2="162" y1="104.5625" y2="104.5625"/><polygon fill="#181818" points="131,100.5625,121,104.5625,131,108.5625,127,104.5625" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="138" x="127" y="86.4966">startActivityForResult</text><polygon fill="#181818" points="255,134.6953,265,138.6953,255,142.6953,259,138.6953" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="120" x2="261" y1="138.6953" y2="138.6953"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="110" x="127" y="133.6294">execStartActivity</text><polygon fill="#181818" points="398,163.8281,408,167.8281,398,171.8281,402,167.8281" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="277" x2="404" y1="167.8281" y2="167.8281"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="78" x="284" y="162.7622">startActivity</text><polygon fill="#181818" points="505,192.9609,515,196.9609,505,200.9609,509,196.9609" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="420" x2="511" y1="196.9609" y2="196.9609"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="78" x="427" y="191.895">startActivity</text><line style="stroke:#181818;stroke-width:1.0;" x1="527" x2="574" y1="221.0938" y2="221.0938"/><line style="stroke:#181818;stroke-width:1.0;" x1="574" x2="574" y1="221.0938" y2="234.0938"/><line style="stroke:#181818;stroke-width:1.0;" x1="533" x2="574" y1="234.0938" y2="234.0938"/><polygon fill="#181818" points="543,230.0938,533,234.0938,543,238.0938,539,234.0938" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="123" x="539" y="216.0278">startActivityAsUser</text><polygon fill="#181818" points="672,264.2266,682,268.2266,672,272.2266,676,268.2266" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="532" x2="678" y1="268.2266" y2="268.2266"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="133" x="539" y="263.1606">startActivityMayWait</text><line style="stroke:#181818;stroke-width:1.0;" x1="694" x2="741" y1="292.3594" y2="292.3594"/><line style="stroke:#181818;stroke-width:1.0;" x1="741" x2="741" y1="292.3594" y2="305.3594"/><line style="stroke:#181818;stroke-width:1.0;" x1="700" x2="741" y1="305.3594" y2="305.3594"/><polygon fill="#181818" points="710,301.3594,700,305.3594,710,309.3594,706,305.3594" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="123" x="706" y="287.2935">startActivityLocked</text><line style="stroke:#181818;stroke-width:1.0;" x1="699" x2="746" y1="334.4922" y2="334.4922"/><line style="stroke:#181818;stroke-width:1.0;" x1="746" x2="746" y1="334.4922" y2="347.4922"/><line style="stroke:#181818;stroke-width:1.0;" x1="705" x2="746" y1="347.4922" y2="347.4922"/><polygon fill="#181818" points="715,343.4922,705,347.4922,715,351.4922,711,347.4922" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="78" x="711" y="329.4263">startActivity</text><polygon fill="#181818" points="803.5,362.4922,813.5,366.4922,803.5,370.4922,807.5,366.4922" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="704" x2="809.5" y1="366.4922" y2="366.4922"/><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="121" x="815.5" y="360.4922"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="107" x="822.5" y="380.4873">ActivityRecord</text><line style="stroke:#181818;stroke-width:1.0;" x1="704" x2="751" y1="417.9219" y2="417.9219"/><line style="stroke:#181818;stroke-width:1.0;" x1="751" x2="751" y1="417.9219" y2="430.9219"/><line style="stroke:#181818;stroke-width:1.0;" x1="710" x2="751" y1="430.9219" y2="430.9219"/><polygon fill="#181818" points="720,426.9219,710,430.9219,720,434.9219,716,430.9219" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="78" x="716" y="412.856">startActivity</text><line style="stroke:#181818;stroke-width:1.0;" x1="709" x2="756" y1="460.0547" y2="460.0547"/><line style="stroke:#181818;stroke-width:1.0;" x1="756" x2="756" y1="460.0547" y2="473.0547"/><line style="stroke:#181818;stroke-width:1.0;" x1="715" x2="756" y1="473.0547" y2="473.0547"/><polygon fill="#181818" points="725,469.0547,715,473.0547,725,477.0547,721,473.0547" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="148" x="721" y="454.9888">startActivityUnchecked</text><polygon fill="#181818" points="1023,503.1875,1033,507.1875,1023,511.1875,1027,507.1875" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="714" x2="1029" y1="507.1875" y2="507.1875"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="254" x="721" y="502.1216">resumeFocusedStackTopActivityLocked</text><polygon fill="#181818" points="1288,532.3203,1298,536.3203,1288,540.3203,1292,536.3203" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="1045" x2="1294" y1="536.3203" y2="536.3203"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="236" x="1052" y="531.2544">resumeTopActivityUncheckedLocked</text><line style="stroke:#181818;stroke-width:1.0;" x1="1310" x2="1357" y1="560.4531" y2="560.4531"/><line style="stroke:#181818;stroke-width:1.0;" x1="1357" x2="1357" y1="560.4531" y2="573.4531"/><line style="stroke:#181818;stroke-width:1.0;" x1="1316" x2="1357" y1="573.4531" y2="573.4531"/><polygon fill="#181818" points="1326,569.4531,1316,573.4531,1326,577.4531,1322,573.4531" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="198" x="1322" y="555.3872">resumeTopActivityInnerLocked</text><polygon fill="#181818" points="1056,618.7188,1046,622.7188,1056,626.7188,1052,622.7188" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="1050" x2="1304" y1="622.7188" y2="622.7188"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="172" x="1062" y="602.52">startSpecificActivityLocked</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="143" x="1062" y="617.6528">&#20250;&#21028;&#26029;&#26159;&#21542;&#21551;&#21160;&#26032;&#30340;&#36827;&#31243;</text><line style="stroke:#181818;stroke-width:1.0;" x1="1045" x2="1092" y1="646.8516" y2="646.8516"/><line style="stroke:#181818;stroke-width:1.0;" x1="1092" x2="1092" y1="646.8516" y2="659.8516"/><line style="stroke:#181818;stroke-width:1.0;" x1="1051" x2="1092" y1="659.8516" y2="659.8516"/><polygon fill="#181818" points="1061,655.8516,1051,659.8516,1061,663.8516,1057,659.8516" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="148" x="1057" y="641.7856">realStartActivityLocked</text><polygon fill="#181818" points="1510,689.9844,1520,693.9844,1510,697.9844,1514,693.9844" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="1050" x2="1516" y1="693.9844" y2="693.9844"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="151" x="1057" y="688.9185">scheduleLaunchActivity</text><polygon fill="#181818" points="1783,719.1172,1793,723.1172,1783,727.1172,1787,723.1172" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="1527" x2="1789" y1="723.1172" y2="723.1172"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="239" x="1534" y="718.0513">sendMessage(H.LAUNCH_ACTIVITY, r)</text><line style="stroke:#181818;stroke-width:1.0;" x1="1795" x2="1837" y1="757.25" y2="757.25"/><line style="stroke:#181818;stroke-width:1.0;" x1="1837" x2="1837" y1="757.25" y2="770.25"/><line style="stroke:#181818;stroke-width:1.0;" x1="1790" x2="1837" y1="770.25" y2="770.25"/><polygon fill="#181818" points="1800,766.25,1790,770.25,1800,774.25,1796,770.25" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="99" x="1802" y="752.1841">handleMessage</text><polygon fill="#181818" points="538,805.5156,528,809.5156,538,813.5156,534,809.5156" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="532" x2="1039" y1="809.5156" y2="809.5156"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="125" x="544" y="789.3169">startProcessLocked</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="78" x="544" y="804.4497">&#38656;&#35201;&#21551;&#21160;&#36827;&#31243;</text><!--SRC=[nLJDIiGm4BxtANBptmVm82o2R64hOdSLKP2OZ6wm9YL9HMyA7aGldaJKeuWNqGSGV1btrRSmhUtQRRPbMGHlpSptVJFpPT8nr6OKq8uGUbiSEiw6c9b7DQBP0TD7Q6fg3YcDfSuYJYzL2LiKSWLK5EW-lCkLbj4-S8qr4poXmI4Glw_2c8NBbV8mnxiW4-ekQ1_a0IDWE19q93bo2q1dW9PhYw7Yc1Ocxi7p1nbYecN9ccefqqC6IQF9k0FBUlXe3RDVqpBaKEI687j0H-DMiLQ024dHvEJVIvUpMfoqOOXvo9uVXV4IA26DXZHBjm-BWaGAQ99kYh1W48wFM4EPZ5CcNwpSgvUhqUkxibX_2LiuySFITZa7QT_o085yqpEfitu8XEqmqk_69dz_lUcStNUldhhNpvtBXyxbS-VyiNlryd5p-lbs-_5uuL0OPeeAetAfT38S-DMhQ-c5OS18yeIRRSEdwSuOjsaKG0D7nlZVbRFGkPQoI6mCSEg1KkQ5ZzTd6xNMqa9zgxRGT5VTvleqaXDEaMJ9pA4svZI0LARKhDn-ZGo9z__VKfvVF5PTL_8tp1xriXJ4sFDposYJVzqTVpwS_6nQkcFP3toqZsy0]--></g></svg>

<h2 id="Activity启动流程"><a href="#Activity启动流程" class="headerlink" title="Activity启动流程"></a>Activity启动流程</h2><?xml version="1.0" encoding="us-ascii" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" height="1451px" preserveAspectRatio="none" style="width:1495px;height:1451px;background:#FFFFFF;" version="1.1" viewBox="0 0 1495 1451" width="1495px" zoomAndPan="magnify"><defs/><g><rect fill="#FFFFFF" height="1287.6406" style="stroke:#181818;stroke-width:1.0;" width="10" x="143" y="119.6953"/><rect fill="#FFBBBB" height="648.4844" style="stroke:#181818;stroke-width:1.0;" width="10" x="148" y="247.0938"/><rect fill="#FFBBBB" height="467.625" style="stroke:#181818;stroke-width:1.0;" width="10" x="148" y="939.7109"/><rect fill="#FFFFFF" height="126.3984" style="stroke:#181818;stroke-width:1.0;" width="10" x="153" y="981.8438"/><rect fill="#FFFFFF" height="97.4297" style="stroke:#181818;stroke-width:1.0;" width="10" x="325" y="281.2266"/><rect fill="#FFFFFF" height="252.8281" style="stroke:#181818;stroke-width:1.0;" width="10" x="325" y="521.3516"/><rect fill="#FFFFFF" height="29.1328" style="stroke:#181818;stroke-width:1.0;" width="10" x="325" y="832.4453"/><rect fill="#FFFFFF" height="29.1328" style="stroke:#181818;stroke-width:1.0;" width="10" x="325" y="1045.1094"/><rect fill="#FFFFFF" height="84.4297" style="stroke:#181818;stroke-width:1.0;" width="10" x="494" y="407.7891"/><rect fill="#FFFFFF" height="209.6953" style="stroke:#181818;stroke-width:1.0;" width="10" x="494" y="550.4844"/><rect fill="#FFFFFF" height="151.5625" style="stroke:#181818;stroke-width:1.0;" width="10" x="499" y="587.6172"/><rect fill="#FFFFFF" height="72.2656" style="stroke:#181818;stroke-width:1.0;" width="10" x="494" y="803.3125"/><rect fill="#FFFFFF" height="72.2656" style="stroke:#181818;stroke-width:1.0;" width="10" x="494" y="1015.9766"/><rect fill="#FFFFFF" height="97.4297" style="stroke:#181818;stroke-width:1.0;" width="10" x="649" y="621.75"/><rect fill="#FFFFFF" height="253.9609" style="stroke:#181818;stroke-width:1.0;" width="10" x="975" y="1144.375"/><rect fill="#FFFFFF" height="56.1328" style="stroke:#181818;stroke-width:1.0;" width="10" x="1155" y="153.8281"/><rect fill="#FFFFFF" height="210.8281" style="stroke:#181818;stroke-width:1.0;" width="10" x="1155" y="1173.5078"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="148" x2="148" y1="36.2969" y2="1416.3359"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="329.5" x2="329.5" y1="36.2969" y2="1416.3359"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="499" x2="499" y1="362.0078" y2="1416.3359"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="653.5" x2="653.5" y1="446.4375" y2="1416.3359"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="842.5" x2="842.5" y1="660.3984" y2="1416.3359"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="979.5" x2="979.5" y1="36.2969" y2="1416.3359"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="1159.5" x2="1159.5" y1="36.2969" y2="1416.3359"/><line style="stroke:#181818;stroke-width:0.5;stroke-dasharray:5.0,5.0;" x1="1431.5" x2="1431.5" y1="1212.1563" y2="1416.3359"/><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="120" x="88" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="106" x="95" y="24.9951">ActivityThread</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="120" x="88" y="1415.3359"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="106" x="95" y="1435.3311">ActivityThread</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="131" x="264.5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="117" x="271.5" y="24.9951">Instrumentation</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="131" x="264.5" y="1415.3359"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="117" x="271.5" y="1435.3311">Instrumentation</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="70" x="464" y="1415.3359"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="56" x="471" y="1435.3311">Activity</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="115" x="596.5" y="1415.3359"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="101" x="603.5" y="1435.3311">PhoneWindow</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="91" x="797.5" y="1415.3359"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="77" x="804.5" y="1435.3311">DecorView</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="163" x="898.5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="149" x="905.5" y="24.9951">WindowManagerImpl</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="163" x="898.5" y="1415.3359"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="149" x="905.5" y="1435.3311">WindowManagerImpl</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="177" x="1071.5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="163" x="1078.5" y="24.9951">WindowManagerGlobal</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="177" x="1071.5" y="1415.3359"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="163" x="1078.5" y="1435.3311">WindowManagerGlobal</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="115" x="1374.5" y="1415.3359"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="101" x="1381.5" y="1435.3311">ViewRootImpl</text><rect fill="#FFFFFF" height="1287.6406" style="stroke:#181818;stroke-width:1.0;" width="10" x="143" y="119.6953"/><rect fill="#FFBBBB" height="648.4844" style="stroke:#181818;stroke-width:1.0;" width="10" x="148" y="247.0938"/><rect fill="#FFBBBB" height="467.625" style="stroke:#181818;stroke-width:1.0;" width="10" x="148" y="939.7109"/><rect fill="#FFFFFF" height="126.3984" style="stroke:#181818;stroke-width:1.0;" width="10" x="153" y="981.8438"/><rect fill="#FFFFFF" height="97.4297" style="stroke:#181818;stroke-width:1.0;" width="10" x="325" y="281.2266"/><rect fill="#FFFFFF" height="252.8281" style="stroke:#181818;stroke-width:1.0;" width="10" x="325" y="521.3516"/><rect fill="#FFFFFF" height="29.1328" style="stroke:#181818;stroke-width:1.0;" width="10" x="325" y="832.4453"/><rect fill="#FFFFFF" height="29.1328" style="stroke:#181818;stroke-width:1.0;" width="10" x="325" y="1045.1094"/><rect fill="#FFFFFF" height="84.4297" style="stroke:#181818;stroke-width:1.0;" width="10" x="494" y="407.7891"/><rect fill="#FFFFFF" height="209.6953" style="stroke:#181818;stroke-width:1.0;" width="10" x="494" y="550.4844"/><rect fill="#FFFFFF" height="151.5625" style="stroke:#181818;stroke-width:1.0;" width="10" x="499" y="587.6172"/><rect fill="#FFFFFF" height="72.2656" style="stroke:#181818;stroke-width:1.0;" width="10" x="494" y="803.3125"/><rect fill="#FFFFFF" height="72.2656" style="stroke:#181818;stroke-width:1.0;" width="10" x="494" y="1015.9766"/><rect fill="#FFFFFF" height="97.4297" style="stroke:#181818;stroke-width:1.0;" width="10" x="649" y="621.75"/><rect fill="#FFFFFF" height="253.9609" style="stroke:#181818;stroke-width:1.0;" width="10" x="975" y="1144.375"/><rect fill="#FFFFFF" height="56.1328" style="stroke:#181818;stroke-width:1.0;" width="10" x="1155" y="153.8281"/><rect fill="#FFFFFF" height="210.8281" style="stroke:#181818;stroke-width:1.0;" width="10" x="1155" y="1173.5078"/><ellipse cx="7.5" cy="81.8125" fill="none" rx="4" ry="4" style="stroke:#181818;stroke-width:1.5;"/><polygon fill="#181818" points="136,78.5625,146,82.5625,136,86.5625,140,82.5625" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="12" x2="142" y1="82.5625" y2="82.5625"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="103" x="15" y="62.3638">handleMessage.</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="116" x="15" y="77.4966">LAUNCH_ACTIVITY</text><line style="stroke:#181818;stroke-width:1.0;" x1="148" x2="195" y1="106.6953" y2="106.6953"/><line style="stroke:#181818;stroke-width:1.0;" x1="195" x2="195" y1="106.6953" y2="119.6953"/><line style="stroke:#181818;stroke-width:1.0;" x1="154" x2="195" y1="119.6953" y2="119.6953"/><polygon fill="#181818" points="164,115.6953,154,119.6953,164,123.6953,160,119.6953" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="137" x="160" y="101.6294">handleLaunchActivity</text><polygon fill="#181818" points="1143,149.8281,1153,153.8281,1143,157.8281,1147,153.8281" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="153" x2="1149" y1="153.8281" y2="153.8281"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="51" x="160" y="148.7622">initialize</text><line style="stroke:#181818;stroke-width:1.0;" x1="1165" x2="1207" y1="182.9609" y2="182.9609"/><line style="stroke:#181818;stroke-width:1.0;" x1="1207" x2="1207" y1="182.9609" y2="195.9609"/><line style="stroke:#181818;stroke-width:1.0;" x1="1166" x2="1207" y1="195.9609" y2="195.9609"/><polygon fill="#181818" points="1176,191.9609,1166,195.9609,1176,199.9609,1172,195.9609" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="248" x="1172" y="177.895">ServiceManager.getService("window"))</text><polygon fill="#181818" points="164,205.9609,154,209.9609,164,213.9609,160,209.9609" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="158" x2="1159" y1="209.9609" y2="209.9609"/><line style="stroke:#181818;stroke-width:1.0;" x1="153" x2="200" y1="234.0938" y2="234.0938"/><line style="stroke:#181818;stroke-width:1.0;" x1="200" x2="200" y1="234.0938" y2="247.0938"/><line style="stroke:#181818;stroke-width:1.0;" x1="159" x2="200" y1="247.0938" y2="247.0938"/><polygon fill="#181818" points="169,243.0938,159,247.0938,169,251.0938,165,247.0938" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="146" x="165" y="229.0278">performLaunchActivity</text><polygon fill="#181818" points="313,277.2266,323,281.2266,313,285.2266,317,281.2266" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="158" x2="319" y1="281.2266" y2="281.2266"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="75" x="165" y="276.1606">newActivity</text><line style="stroke:#181818;stroke-width:1.0;" x1="335" x2="377" y1="310.3594" y2="310.3594"/><line style="stroke:#181818;stroke-width:1.0;" x1="377" x2="377" y1="310.3594" y2="323.3594"/><line style="stroke:#181818;stroke-width:1.0;" x1="336" x2="377" y1="323.3594" y2="323.3594"/><polygon fill="#181818" points="346,319.3594,336,323.3594,346,327.3594,342,323.3594" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="143" x="342" y="305.2935">ClassLoader.loadClass</text><polygon fill="#181818" points="452,348.4922,462,352.4922,452,356.4922,456,352.4922" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="335" x2="458" y1="352.4922" y2="352.4922"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="81" x="342" y="347.4263">newInstance</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="70" x="464" y="331.3594"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="56" x="471" y="351.3545">Activity</text><polygon fill="#181818" points="169,374.6563,159,378.6563,169,382.6563,165,378.6563" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="163" x2="329" y1="378.6563" y2="378.6563"/><polygon fill="#181818" points="482,403.7891,492,407.7891,482,411.7891,486,407.7891" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="158" x2="488" y1="407.7891" y2="407.7891"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="41" x="165" y="402.7231">attach</text><polygon fill="#181818" points="584.5,432.9219,594.5,436.9219,584.5,440.9219,588.5,436.9219" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="504" x2="590.5" y1="436.9219" y2="436.9219"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="64" x="511" y="431.856">mWindow</text><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="115" x="596.5" y="415.7891"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="101" x="603.5" y="435.7842">PhoneWindow</text><polygon fill="#181818" points="642,474.2188,652,478.2188,642,482.2188,646,478.2188" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="504" x2="648" y1="478.2188" y2="478.2188"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="126" x="511" y="473.1528">setWindowManager</text><polygon fill="#181818" points="169,488.2188,159,492.2188,169,496.2188,165,492.2188" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="163" x2="498" y1="492.2188" y2="492.2188"/><polygon fill="#181818" points="313,517.3516,323,521.3516,313,525.3516,317,521.3516" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="158" x2="319" y1="521.3516" y2="521.3516"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="130" x="165" y="516.2856">callActivityOnCreate</text><polygon fill="#181818" points="482,546.4844,492,550.4844,482,554.4844,486,550.4844" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="335" x2="488" y1="550.4844" y2="550.4844"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="95" x="342" y="545.4185">performCreate</text><line style="stroke:#181818;stroke-width:1.0;" x1="504" x2="551" y1="574.6172" y2="574.6172"/><line style="stroke:#181818;stroke-width:1.0;" x1="551" x2="551" y1="574.6172" y2="587.6172"/><line style="stroke:#181818;stroke-width:1.0;" x1="510" x2="551" y1="587.6172" y2="587.6172"/><polygon fill="#181818" points="520,583.6172,510,587.6172,520,591.6172,516,587.6172" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="59" x="516" y="569.5513">onCreate</text><polygon fill="#181818" points="637,617.75,647,621.75,637,625.75,641,621.75" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="509" x2="643" y1="621.75" y2="621.75"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="102" x="516" y="616.6841">setContentView</text><polygon fill="#181818" points="785.5,631.75,795.5,635.75,785.5,639.75,789.5,635.75" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="659" x2="791.5" y1="635.75" y2="635.75"/><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="91" x="797.5" y="629.75"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="77" x="804.5" y="649.7451">DecorView</text><line style="stroke:#181818;stroke-width:1.0;" x1="659" x2="701" y1="692.1797" y2="692.1797"/><line style="stroke:#181818;stroke-width:1.0;" x1="701" x2="701" y1="692.1797" y2="705.1797"/><line style="stroke:#181818;stroke-width:1.0;" x1="660" x2="701" y1="705.1797" y2="705.1797"/><polygon fill="#181818" points="670,701.1797,660,705.1797,670,709.1797,666,705.1797" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="165" x="666" y="687.1138">mContentParent.addView</text><polygon fill="#181818" points="520,715.1797,510,719.1797,520,723.1797,516,719.1797" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="514" x2="653" y1="719.1797" y2="719.1797"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="509" x2="551" y1="738.1797" y2="738.1797"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="551" x2="551" y1="738.1797" y2="751.1797"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="504" x2="551" y1="751.1797" y2="751.1797"/><polygon fill="#181818" points="514,747.1797,504,751.1797,514,755.1797,510,751.1797" style="stroke:#181818;stroke-width:1.0;"/><polygon fill="#181818" points="346,756.1797,336,760.1797,346,764.1797,342,760.1797" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="340" x2="498" y1="760.1797" y2="760.1797"/><polygon fill="#181818" points="169,770.1797,159,774.1797,169,778.1797,165,774.1797" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="163" x2="329" y1="774.1797" y2="774.1797"/><polygon fill="#181818" points="482,799.3125,492,803.3125,482,807.3125,486,803.3125" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="158" x2="488" y1="803.3125" y2="803.3125"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="83" x="165" y="798.2466">performStart</text><polygon fill="#181818" points="346,828.4453,336,832.4453,346,836.4453,342,832.4453" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="340" x2="493" y1="832.4453" y2="832.4453"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="118" x="352" y="827.3794">callActivityOnStart</text><polygon fill="#181818" points="482,857.5781,492,861.5781,482,865.5781,486,861.5781" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="330" x2="488" y1="861.5781" y2="861.5781"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="47" x="337" y="856.5122">onStart</text><polygon fill="#181818" points="169,871.5781,159,875.5781,169,879.5781,165,875.5781" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="163" x2="498" y1="875.5781" y2="875.5781"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="158" x2="200" y1="894.5781" y2="894.5781"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="200" x2="200" y1="894.5781" y2="907.5781"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="153" x2="200" y1="907.5781" y2="907.5781"/><polygon fill="#181818" points="163,903.5781,153,907.5781,163,911.5781,159,907.5781" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="153" x2="200" y1="926.7109" y2="926.7109"/><line style="stroke:#181818;stroke-width:1.0;" x1="200" x2="200" y1="926.7109" y2="939.7109"/><line style="stroke:#181818;stroke-width:1.0;" x1="159" x2="200" y1="939.7109" y2="939.7109"/><polygon fill="#181818" points="169,935.7109,159,939.7109,169,943.7109,165,939.7109" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="144" x="165" y="921.645">handleResumeActivity</text><line style="stroke:#181818;stroke-width:1.0;" x1="158" x2="205" y1="968.8438" y2="968.8438"/><line style="stroke:#181818;stroke-width:1.0;" x1="205" x2="205" y1="968.8438" y2="981.8438"/><line style="stroke:#181818;stroke-width:1.0;" x1="164" x2="205" y1="981.8438" y2="981.8438"/><polygon fill="#181818" points="174,977.8438,164,981.8438,174,985.8438,170,981.8438" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="153" x="170" y="963.7778">performResumeActivity</text><polygon fill="#181818" points="482,1011.9766,492,1015.9766,482,1019.9766,486,1015.9766" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="163" x2="488" y1="1015.9766" y2="1015.9766"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="105" x="170" y="1010.9106">performResume</text><polygon fill="#181818" points="346,1041.1094,336,1045.1094,346,1049.1094,342,1045.1094" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="340" x2="493" y1="1045.1094" y2="1045.1094"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="140" x="352" y="1040.0435">callActivityOnResume</text><polygon fill="#181818" points="482,1070.2422,492,1074.2422,482,1078.2422,486,1074.2422" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="330" x2="488" y1="1074.2422" y2="1074.2422"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="69" x="337" y="1069.1763">onResume</text><polygon fill="#181818" points="174,1084.2422,164,1088.2422,174,1092.2422,170,1088.2422" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="168" x2="498" y1="1088.2422" y2="1088.2422"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="163" x2="205" y1="1107.2422" y2="1107.2422"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="205" x2="205" y1="1107.2422" y2="1120.2422"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="158" x2="205" y1="1120.2422" y2="1120.2422"/><polygon fill="#181818" points="168,1116.2422,158,1120.2422,168,1124.2422,164,1120.2422" style="stroke:#181818;stroke-width:1.0;"/><polygon fill="#181818" points="963,1140.375,973,1144.375,963,1148.375,967,1144.375" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="158" x2="969" y1="1144.375" y2="1144.375"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="132" x="165" y="1139.3091">addView(decorView)</text><polygon fill="#181818" points="1143,1169.5078,1153,1173.5078,1143,1177.5078,1147,1173.5078" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="985" x2="1149" y1="1173.5078" y2="1173.5078"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="55" x="992" y="1168.4419">addView</text><polygon fill="#181818" points="1362.5,1183.5078,1372.5,1187.5078,1362.5,1191.5078,1366.5,1187.5078" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="1165" x2="1368.5" y1="1187.5078" y2="1187.5078"/><rect fill="#E2E2F0" height="30.2969" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="115" x="1374.5" y="1181.5078"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="101" x="1381.5" y="1201.5029">ViewRootImpl</text><line style="stroke:#181818;stroke-width:1.0;" x1="1165" x2="1207" y1="1243.9375" y2="1243.9375"/><line style="stroke:#181818;stroke-width:1.0;" x1="1207" x2="1207" y1="1243.9375" y2="1256.9375"/><line style="stroke:#181818;stroke-width:1.0;" x1="1166" x2="1207" y1="1256.9375" y2="1256.9375"/><polygon fill="#181818" points="1176,1252.9375,1166,1256.9375,1176,1260.9375,1172,1256.9375" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="119" x="1172" y="1238.8716">mViews.add(view)</text><line style="stroke:#181818;stroke-width:1.0;" x1="1165" x2="1207" y1="1286.0703" y2="1286.0703"/><line style="stroke:#181818;stroke-width:1.0;" x1="1207" x2="1207" y1="1286.0703" y2="1299.0703"/><line style="stroke:#181818;stroke-width:1.0;" x1="1166" x2="1207" y1="1299.0703" y2="1299.0703"/><polygon fill="#181818" points="1176,1295.0703,1166,1299.0703,1176,1303.0703,1172,1299.0703" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="114" x="1172" y="1281.0044">mRoots.add(root)</text><line style="stroke:#181818;stroke-width:1.0;" x1="1165" x2="1207" y1="1328.2031" y2="1328.2031"/><line style="stroke:#181818;stroke-width:1.0;" x1="1207" x2="1207" y1="1328.2031" y2="1341.2031"/><line style="stroke:#181818;stroke-width:1.0;" x1="1166" x2="1207" y1="1341.2031" y2="1341.2031"/><polygon fill="#181818" points="1176,1337.2031,1166,1341.2031,1176,1345.2031,1172,1341.2031" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="160" x="1172" y="1323.1372">mParams.add(wparams)</text><polygon fill="#181818" points="1420,1366.3359,1430,1370.3359,1420,1374.3359,1424,1370.3359" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;" x1="1165" x2="1426" y1="1370.3359" y2="1370.3359"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="51" x="1172" y="1365.27">setView</text><polygon fill="#181818" points="996,1380.3359,986,1384.3359,996,1388.3359,992,1384.3359" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="990" x2="1159" y1="1384.3359" y2="1384.3359"/><polygon fill="#181818" points="169,1394.3359,159,1398.3359,169,1402.3359,165,1398.3359" style="stroke:#181818;stroke-width:1.0;"/><line style="stroke:#181818;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="163" x2="979" y1="1398.3359" y2="1398.3359"/><!--SRC=[bLHHRvim47xdLvpQXoQD4dMFvM5IojGrKjfLRTffMgNg2jTY2MnadB3jryzWWq8mWUOXWFrzT_TzzjqPn2mYU1T2lOa_NePIiP1bo1NyP3mInIro_23vFH5lc82G4Kcul6m1dnaL3ph0Airgn9UB2y_xBUPVOHagjcFgxoQMX17u42EF4hgbFDTn5ozylNow2svUby5czRpQ_F8E2DqGiraJPOrR7iRrleFgqZ2R-S0uKmmJzeyy5wI7wGCyajonaEpwueEKNPcS51NZP3hr9AcjvAEKd5vVN-cV3nd9To7JGKKhdYkvJOahL4nmumQdeg4S0XmS7u84ytmjK9_L8j6Fwjj5hSF2-Rd9KsAGXpGiqfI6Ic4ODx0IS1yBJiPV4pOr7xqW7t9IhGFfpzxrnuSGawH6_k21XYewAhQgt9w8XU_NriO9xe3ibr-Me0K4WYkThUmMRtzRexzHA6IveVqut6iRaTeezoZr_mAZg8fdxN0-Xax8wdnKkgLR6fnNhUsb8HspSZwlB3B0Cp0rDGjZAtKqZ9a03vJhn4VwnJKyhEBHN0ThmAX3donfX54MEMHCgnkgmLicjTTX4jNtQUfrWRrZ4Pe0VKEnDUdrLVtKx4nBTbvUsSckMzeWkynhs5A_VPQj-mLJGo-owdqwIcJLkTqM-my0]--></g></svg>

<?xml version="1.0" encoding="us-ascii" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" height="203px" preserveAspectRatio="none" style="width:372px;height:203px;background:#FFFFFF;" version="1.1" viewBox="0 0 372 203" width="372px" zoomAndPan="magnify"><defs/><g><!--class WindowManagerGlobal--><g id="elem_WindowManagerGlobal"><rect codeLine="1" fill="#F1F1F1" height="80.5938" id="WindowManagerGlobal" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="259" x="101.5" y="7"/><ellipse cx="145.3" cy="23" fill="#ADD1B2" rx="11" ry="11" style="stroke:#181818;stroke-width:1.0;"/><path d="M147.6438,18.6719 C146.7063,18.2344 146.1125,18.0938 145.2375,18.0938 C142.6125,18.0938 140.6125,20.1719 140.6125,22.8906 L140.6125,24.0156 C140.6125,26.5938 142.7219,28.4844 145.6125,28.4844 C146.8313,28.4844 147.9875,28.1875 148.7375,27.6406 C149.3156,27.2344 149.6438,26.7813 149.6438,26.3906 C149.6438,25.9375 149.2531,25.5469 148.7844,25.5469 C148.5656,25.5469 148.3625,25.625 148.175,25.8125 C147.7219,26.2969 147.7219,26.2969 147.5344,26.3906 C147.1125,26.6563 146.425,26.7813 145.6594,26.7813 C143.6125,26.7813 142.3156,25.6875 142.3156,23.9844 L142.3156,22.8906 C142.3156,21.1094 143.5656,19.7969 145.3,19.7969 C145.8781,19.7969 146.4875,19.9531 146.9563,20.2031 C147.4406,20.4844 147.6125,20.7031 147.7063,21.1094 C147.7688,21.5156 147.8,21.6406 147.9406,21.7656 C148.0813,21.9063 148.3156,22.0156 148.5344,22.0156 C148.8,22.0156 149.0656,21.875 149.2375,21.6563 C149.3469,21.5 149.3781,21.3125 149.3781,20.8906 L149.3781,19.4688 C149.3781,19.0313 149.3625,18.9063 149.2688,18.75 C149.1125,18.4844 148.8313,18.3438 148.5344,18.3438 C148.2375,18.3438 148.0344,18.4375 147.8156,18.75 L147.6438,18.6719 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="163" x="165.7" y="27.8467">WindowManagerGlobal</text><line style="stroke:#181818;stroke-width:0.5;" x1="102.5" x2="359.5" y1="39" y2="39"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="184" x="107.5" y="55.9951">ArrayList&lt;View&gt; mViews;</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="247" x="107.5" y="72.292">ArrayList&lt;ViewRootImpl&gt; mRoots</text><line style="stroke:#181818;stroke-width:0.5;" x1="102.5" x2="359.5" y1="79.5938" y2="79.5938"/></g><!--class View--><g id="elem_View"><rect fill="#F1F1F1" height="48" id="View" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="66" x="131" y="148"/><ellipse cx="146" cy="164" fill="#ADD1B2" rx="11" ry="11" style="stroke:#181818;stroke-width:1.0;"/><path d="M148.3438,159.6719 C147.4063,159.2344 146.8125,159.0938 145.9375,159.0938 C143.3125,159.0938 141.3125,161.1719 141.3125,163.8906 L141.3125,165.0156 C141.3125,167.5938 143.4219,169.4844 146.3125,169.4844 C147.5313,169.4844 148.6875,169.1875 149.4375,168.6406 C150.0156,168.2344 150.3438,167.7813 150.3438,167.3906 C150.3438,166.9375 149.9531,166.5469 149.4844,166.5469 C149.2656,166.5469 149.0625,166.625 148.875,166.8125 C148.4219,167.2969 148.4219,167.2969 148.2344,167.3906 C147.8125,167.6563 147.125,167.7813 146.3594,167.7813 C144.3125,167.7813 143.0156,166.6875 143.0156,164.9844 L143.0156,163.8906 C143.0156,162.1094 144.2656,160.7969 146,160.7969 C146.5781,160.7969 147.1875,160.9531 147.6563,161.2031 C148.1406,161.4844 148.3125,161.7031 148.4063,162.1094 C148.4688,162.5156 148.5,162.6406 148.6406,162.7656 C148.7813,162.9063 149.0156,163.0156 149.2344,163.0156 C149.5,163.0156 149.7656,162.875 149.9375,162.6563 C150.0469,162.5 150.0781,162.3125 150.0781,161.8906 L150.0781,160.4688 C150.0781,160.0313 150.0625,159.9063 149.9688,159.75 C149.8125,159.4844 149.5313,159.3438 149.2344,159.3438 C148.9375,159.3438 148.7344,159.4375 148.5156,159.75 L148.3438,159.6719 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="34" x="160" y="168.8467">View</text><line style="stroke:#181818;stroke-width:0.5;" x1="132" x2="196" y1="180" y2="180"/><line style="stroke:#181818;stroke-width:0.5;" x1="132" x2="196" y1="188" y2="188"/></g><g id="elem_GMN5"><path d="M6,159.5 L6,184.6328 A0,0 0 0 0 6,184.6328 L96,184.6328 A0,0 0 0 0 96,184.6328 L96,177.5 L130.808,172 L96,169.5 L96,169.5 L86,159.5 L6,159.5 A0,0 0 0 0 6,159.5 " fill="#FEFFDD" style="stroke:#181818;stroke-width:0.5;"/><path d="M86,159.5 L86,169.5 L96,169.5 L86,159.5 " fill="#FEFFDD" style="stroke:#181818;stroke-width:0.5;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="69" x="12" y="176.5669">DecorView</text></g><!--class ViewRootImpl--><g id="elem_ViewRootImpl"><rect fill="#F1F1F1" height="48" id="ViewRootImpl" rx="2.5" ry="2.5" style="stroke:#181818;stroke-width:0.5;" width="133" x="232.5" y="148"/><ellipse cx="247.5" cy="164" fill="#ADD1B2" rx="11" ry="11" style="stroke:#181818;stroke-width:1.0;"/><path d="M249.8438,159.6719 C248.9063,159.2344 248.3125,159.0938 247.4375,159.0938 C244.8125,159.0938 242.8125,161.1719 242.8125,163.8906 L242.8125,165.0156 C242.8125,167.5938 244.9219,169.4844 247.8125,169.4844 C249.0313,169.4844 250.1875,169.1875 250.9375,168.6406 C251.5156,168.2344 251.8438,167.7813 251.8438,167.3906 C251.8438,166.9375 251.4531,166.5469 250.9844,166.5469 C250.7656,166.5469 250.5625,166.625 250.375,166.8125 C249.9219,167.2969 249.9219,167.2969 249.7344,167.3906 C249.3125,167.6563 248.625,167.7813 247.8594,167.7813 C245.8125,167.7813 244.5156,166.6875 244.5156,164.9844 L244.5156,163.8906 C244.5156,162.1094 245.7656,160.7969 247.5,160.7969 C248.0781,160.7969 248.6875,160.9531 249.1563,161.2031 C249.6406,161.4844 249.8125,161.7031 249.9063,162.1094 C249.9688,162.5156 250,162.6406 250.1406,162.7656 C250.2813,162.9063 250.5156,163.0156 250.7344,163.0156 C251,163.0156 251.2656,162.875 251.4375,162.6563 C251.5469,162.5 251.5781,162.3125 251.5781,161.8906 L251.5781,160.4688 C251.5781,160.0313 251.5625,159.9063 251.4688,159.75 C251.3125,159.4844 251.0313,159.3438 250.7344,159.3438 C250.4375,159.3438 250.2344,159.4375 250.0156,159.75 L249.8438,159.6719 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="101" x="261.5" y="168.8467">ViewRootImpl</text><line style="stroke:#181818;stroke-width:0.5;" x1="233.5" x2="364.5" y1="180" y2="180"/><line style="stroke:#181818;stroke-width:0.5;" x1="233.5" x2="364.5" y1="188" y2="188"/></g><!--reverse link WindowManagerGlobal to View--><g id="link_WindowManagerGlobal_View"><path codeLine="5" d="M203.4889,98.8002 C192.7139,118.5014 185.84,131.0687 176.666,147.8428 " fill="none" id="WindowManagerGlobal-backto-View" style="stroke:#181818;stroke-width:1.0;"/><polygon fill="#181818" points="209.247,88.272,202.8585,91.6168,203.4889,98.8002,209.8774,95.4555,209.247,88.272" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="8" x="197.3036" y="107.7718">1</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="8" x="170.8867" y="136.8146">n</text></g><!--reverse link WindowManagerGlobal to ViewRootImpl--><g id="link_WindowManagerGlobal_ViewRootImpl"><path codeLine="7" d="M258.902,98.7639 C269.838,118.4651 276.834,131.0687 286.145,147.8428 " fill="none" id="WindowManagerGlobal-backto-ViewRootImpl" style="stroke:#181818;stroke-width:1.0;"/><polygon fill="#181818" points="253.078,88.272,252.4927,95.4593,258.902,98.7639,259.4873,91.5766,253.078,88.272" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="8" x="247.8462" y="107.7718">1</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="8" x="273.8259" y="136.8146">n</text></g><!--SRC=[Iyv9B2vM2C_CIyalzqtCIqnFBNBFoKzAp56evb800iUYeiHAdypY4fkmpDHoEuLS45LiZKKkA3-_n3Et80Ue1iGivghbmcQiag6IWfQkhe9Idf82I1jNNdv9ga9EQbg9GduQM4J1Ii4bDJc_22nBZ14mcm40]--></g></svg>

    </div>

    
    
    

    <footer class="post-footer">

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/posts/60405.html" rel="prev" title="Android应用进程启动流程">
                  <i class="fa fa-angle-left"></i> Android应用进程启动流程
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/posts/2588.html" rel="next" title="Red Black Tree">
                  Red Black Tree <i class="fa fa-angle-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>






</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">

  <div class="copyright">
    &copy; 
    <span itemprop="copyrightYear">2024</span>
    <span class="with-love">
      <i class="fa fa-heart"></i>
    </span>
    <span class="author" itemprop="copyrightHolder">Jason</span>
  </div>
  <div class="powered-by">由 <a href="https://hexo.io/" rel="noopener external nofollow noreferrer" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/pisces/" rel="noopener external nofollow noreferrer" target="_blank">NexT.Pisces</a> 强力驱动
  </div>

    </div>
  </footer>

  
  <div class="back-to-top" role="button" aria-label="返回顶部">
    <i class="fa fa-arrow-up fa-lg"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


  
  <script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/next-theme-pjax/0.6.0/pjax.min.js" integrity="sha256-vxLn1tSKWD4dqbMRyv940UYw4sXgMtYcK6reefzZrao=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/fancyapps-ui/5.0.24/fancybox/fancybox.umd.js" integrity="sha256-oyhjPiYRWGXaAt+ny/mTMWOnN1GBoZDUQnzzgC7FRI4=" crossorigin="anonymous"></script>
<script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/next-boot.js"></script><script src="/js/pjax.js"></script>

  <script src="https://cdnjs.cloudflare.com/ajax/libs/hexo-generator-searchdb/1.4.1/search.js" integrity="sha256-1kfA5uHPf65M5cphT2dvymhkuyHPQp5A53EGZOnOLmc=" crossorigin="anonymous"></script>
<script src="/js/third-party/search/local-search.js"></script>


  <script class="next-config" data-name="mermaid" type="application/json">{"enable":true,"theme":{"light":"default","dark":"dark"},"js":{"url":"https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.5.0/mermaid.min.js","integrity":"sha256-K7oJiQlDulzl24ZUFOywuYme1JqBBvQzK6m8qHjt9Gk="}}</script>
  <script type="module" src="/js/zenuml-definition-074a43fa.js"></script>
  <script type="module" src="/js/mermaid-zenuml.esm.min.mjs"></script>
  <script src="/js/third-party/tags/mermaid.js"></script>


  <script src="/js/third-party/fancybox.js"></script>



  




  

  <script class="next-config" data-name="enableMath" type="application/json">true</script><script class="next-config" data-name="mathjax" type="application/json">{"enable":true,"tags":"none","js":{"url":"https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.js","integrity":"sha256-MASABpB4tYktI2Oitl4t+78w/lyA+D7b/s9GEP0JOGI="}}</script>
<script src="/js/third-party/math/mathjax.js"></script>



</body>
</html>
